<template>
  <svg
    version="1.1"
    id="logo"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    x="0px"
    y="0px"
    :viewBox="viewBox"
    :style="styles"
    xml:space="preserve"
  >
    <g v-if="showIcon">
      <linearGradient
        id="SVGID_1_"
        gradientUnits="userSpaceOnUse"
        x1="7.1598"
        y1="19.15"
        x2="19.1947"
        y2="19.15"
        gradientTransform="matrix(1 0 0 -1 0 34)"
      >
        <stop offset="0" style="stop-color:#6373FE" />
        <stop offset="1" style="stop-color:#3953FA" />
      </linearGradient>
      <path
        class="st0"
        d="M13.9,17.2c1.3,0.4,2.7,0.7,4.1,0.8c0.8-1.1,1.2-2.5,1.2-3.9c0-2.3-1.1-4.3-2.8-5.6l0,0
                      c-1.4-1.1-3-1.9-4.7-2.4l0,0h-0.1l0,0h-0.1l0,0h-0.1l0,0h-0.1l0,0h-0.1l0,0h-0.1l0,0H11l0,0h-0.1l0,0h-0.1l0,0h-0.1l0,0h-0.1l0,0
                      h-0.1l0,0h-0.1l0,0h-0.1l0,0h-0.1l0,0h-0.1l0,0H10l0,0H9.9l0,0H9.8l0,0H9.7l0,0H9.6l0,0H9.5l0,0H9.4l0,0H9.3l0,0H9.2l0,0H9.1
                      c-0.5,1.5-0.8,3.1-0.8,4.7v0.1l0,0V11l0,0v0.1l0,0v0.1l0,0v0.1l0,0v0.1l0,0v0.1l0,0v0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1
                      V12c0,0,0,0,0,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1l0,0v0.1l0,0c0,0,0,0,0,0.1l0,0c0,0.1,0,0.2,0,0.2l0,0v0.1l0,0c0,0.1,0,0.1,0,0.2
                      l0,0v0.1l0,0c0,0.1,0,0.2,0.1,0.3l0,0c0.9,4.7,4.2,8.5,8.5,10.2c-2.7-2.1-4.7-5.1-5.3-8.6c0-0.2,0-0.4,0-0.6c0-1.8,1.4-3.2,3.2-3.2
                      s3.2,1.4,3.2,3.2C17,15.7,15.6,17.1,13.9,17.2z"
      />

      <linearGradient
        id="SVGID_2_"
        gradientUnits="userSpaceOnUse"
        x1="7.9442"
        y1="16.75"
        x2="27.875"
        y2="16.75"
        gradientTransform="matrix(1 0 0 -1 0 34)"
      >
        <stop offset="0" style="stop-color:#6373FE" />
        <stop offset="1" style="stop-color:#3953FA" />
      </linearGradient>
      <path
        class="st1"
        d="M26,8.2L26,8.2L26,8.2L26,8.2c0.5,0.2,1,0.3,1.6,0.3c0.1,0,0.2,0,0.3,0l0,0c-0.5,0-0.9-0.5-0.9-1V7.4l0,0V7.3
                      c0-0.5-0.4-0.9-0.9-0.9l0,0l0,0l0,0c-0.1,0-0.1,0-0.1,0c-2.2,0.2-4,2.1-4,4.4c0,0.4,0.1,0.9,0.2,1.3c0.1,0.2,0.1,0.4,0.3,0.7
                      c0.5,1.1,0.8,2.3,0.8,3.6c0,4.5-3.6,8.1-8.1,8.1c-3.1,0-5.8-1.8-7.2-4.3c0.6,4.5,4.5,7.9,9.2,7.9c5.1,0,9.3-4.2,9.3-9.3
                      c0-2.4-0.9-4.5-2.3-6.1l0,0c-0.4-0.5-0.6-1.1-0.6-1.7C23.4,9.4,24.6,8.2,26,8.2z"
      />
    </g>
    <g v-if="showText">
      <linearGradient
        id="SVGID_3_"
        gradientUnits="userSpaceOnUse"
        x1="110.8719"
        y1="22.902"
        x2="111.0163"
        y2="22.902"
      >
        <stop offset="0" style="stop-color:#6373FE" />
        <stop offset="1" style="stop-color:#3953FA" />
      </linearGradient>
      <polygon class="st2" points="111,23.2 111,22.8 110.9,22.6 	" />
      <g>
        <linearGradient
          id="SVGID_4_"
          gradientUnits="userSpaceOnUse"
          x1="38.5424"
          y1="16.0602"
          x2="54.8754"
          y2="16.0602"
        >
          <stop offset="0" style="stop-color:#6373FE" />
          <stop offset="1" style="stop-color:#3953FA" />
        </linearGradient>
        <path
          class="st3"
          d="M46.3,16.3h-1.5v-0.7l-6.3,0.4v-1l1-0.1V9.6v0h-0.8v-1h8.4v1h-0.7h-0.3v0.3v4.6l1.2-0.1v1.1l-1.2,0.1V16.3z
                        M38.8,22.4l6.5-1.6V22l-6.5,1.6V22.4z M39.1,19.8l6.2-1.2v1.2L39.1,21V19.8z M47.7,23.6h-1.5V18l-6.1,0.2V17l13.4-0.4v1.2
                        l-5.9,0.2V23.6z M44.6,9.6h-3.3H41v0.2v0.5v0.2h0.2h3.3h0.2v-0.2V9.8V9.6H44.6z M41,11.8v0.5v0.2h0.2h3.3h0.2v-0.2v-0.5v-0.2h-0.2
                        h-3.3H41V11.8z M41,13.8v1l3.8-0.2v-0.8v-0.2h-0.2h-3.3H41V13.8z M48,15.7l2.3-2.3l-1.9-2.1h1.9l1,1.1l1.8-1.8V10H53h-4.8V8.7h6.4
                        V11l-2.2,2.3l2.2,2.4h-1.9l-1.4-1.5l-1.5,1.5H48z M50.7,20.1l3.6-1.8v1.3l-2.4,1.2l2.9,1.5v1.3l-6.4-3.3V19L50.7,20.1z"
        />
        <linearGradient
          id="SVGID_5_"
          gradientUnits="userSpaceOnUse"
          x1="57.475"
          y1="16.0602"
          x2="73.8452"
          y2="16.0602"
        >
          <stop offset="0" style="stop-color:#6373FE" />
          <stop offset="1" style="stop-color:#3953FA" />
        </linearGradient>
        <path
          class="st4"
          d="M57.5,23.6l1.3-2.8h1.5L59,23.6H57.5z M65.7,9.7h7.6V11h-7.6h-0.3v0.2v2.1v0.2h0.3h7.4v5.8H58.2v-5.8h5.6H64
                        v-0.2V8.5h1.5v1v0.2H65.7z M59.9,18.1h11.5h0.3v-0.2V15v-0.3h-0.3H59.9h-0.2V15v2.9v0.2H59.9z M62.2,20.8h1.6l1.1,2.8h-1.6
                        L62.2,20.8z M66.7,20.8h1.6l1.2,2.8h-1.5L66.7,20.8z M71.1,20.8h1.5l1.2,2.8h-1.5L71.1,20.8z"
        />
        <linearGradient
          id="SVGID_6_"
          gradientUnits="userSpaceOnUse"
          x1="76.4829"
          y1="16.0602"
          x2="92.3393"
          y2="16.0602"
        >
          <stop offset="0" style="stop-color:#6373FE" />
          <stop offset="1" style="stop-color:#3953FA" />
        </linearGradient>
        <path
          class="st5"
          d="M76.5,10.5V9.3h7.3l-0.4-0.8h1.7l0.4,0.8h6.8v1.2H76.5z M88.3,11.2h1.5L89,12.6h3.2v11.1h-2.7L89,22.4h1.8
                        v-8.6H78.1v9.8h-1.5V12.6h3.2l-0.7-1.4h1.6l0.7,1.4h6L88.3,11.2z M79.2,16.1l3.8-1.6v1.4l-3.8,1.5V16.1z M88.3,22.7h-7.7v-4.9h7.7
                        V22.7z M82.3,21.5h4.2h0.3v-0.2v-2V19h-0.3h-4.2h-0.2v0.2v2v0.2H82.3z M86,15.9v-1.4l3.8,1.5v1.4L86,15.9z"
        />
        <linearGradient
          id="SVGID_7_"
          gradientUnits="userSpaceOnUse"
          x1="94.7563"
          y1="16.0235"
          x2="111.6752"
          y2="16.0235"
        >
          <stop offset="0" style="stop-color:#6373FE" />
          <stop offset="1" style="stop-color:#3953FA" />
        </linearGradient>
        <path
          class="st6"
          d="M94.8,23.1v-1.4l1.2-0.5v-7.9h-0.3h-0.9v-1.2H96V8.5h1.4v3.5v0.2h1.5v1.2h-1.3h-0.2v0.2v6.8v0.4l1.5-0.5v1.4
                        L94.8,23.1z M101.2,20.8l-1,2.8h-1.4l1-2.9V9.4h6.1l-0.1-1h1.4l0.1,1h0.2h1.8v1.2h-1.9l0.6,6.5l1.9-4.9h1.4l-2.9,7l1.5,2.2
                        l0.7-2.5l1,1.1l-1.1,3.7H110l-2.2-3.1l-1.2,3.1h-1.4l1.8-4.4l-0.9-8.6h-4.7h-0.2v0.2v2.6v0.2h0.2h3.2v9.2h-2.4l-0.6-1.3h1.4h0.2
                        v-0.2V15v-0.2h-2.1V15V20.8z M109.6,8.6h1.3l0.5,2.2h-1.3L109.6,8.6z"
        />
      </g>
    </g>
  </svg>
</template>

<script>
export default {
  props: {
    viewBox: {
      type: String,
      default: "0 0 126.7 32"
    },
    fill: {
      type: String,
      default: "#4d65fd"
    },
    height: {
      type: String,
      default: "100%"
    },
    width: {
      type: String,
      default: "auto"
    },
    // 显示图标
    showIcon: {
      type: Boolean,
      default: true
    },
    // 显示文字
    showText: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      styles: {
        enableBackground: "new 0 0 126.7 32",
        fill: this.fill,
        width: this.width,
        height: this.height
      }
    };
  }
};
</script>
